#!/bin/bash

if [[ -z $2 ]]
then
    echo Usage: $0 folder/file addresses_with_whitespaces
    exit 1;
fi

folder=$1
shift

for vm in "$@"
do
    echo copying $folder to $vm
    scp -r $folder  ubuntu@$vm:
done
